package com.windystory.wslibrary.model;


/**
 * 基类interface
 * Created by windystory on 2017/2/18.
 */

public interface IModel {
    /**
     * list集合类型
     *
     * @param <T>
     */
    interface List<T> {
        void onSuccess(java.util.List<T> dataList);

        void onFailed(String msg);
    }

    /**
     * object实体类型
     *
     * @param <T>
     */
    interface Obj<T> {
        void onSuccess(T object);

        void onFailed(String msg);
    }

    /**
     * msg字符串类型
     */
    interface Message {
        void onSuccess(String message);

        void onFailed(String msg);
    }
}
